
<section class="wrapper">
	<!-- page start-->
	<section class="panel">
		<header class="panel-heading"> WEB CONFIGURATION </header>
		<div class="panel-body">
			<form class="form-horizontal" role="form" name="setting"
				method="POST"
				action="<?=base_url(); ?>secure/settings/web_configuration/getSetting/">
				<?php if($this->session->flashdata('message'))
				{
					$msg=$this->session->flashdata('message');
					echo '<font color="red">'.$msg.'</font>';
				}
				?>
				<div class="form-group">
					<label for="input" class="col-lg-2 control-label">Web Configuration</label>
					<div class="col-lg-3">
						<select class="form-control" name="website_settings" onchange="this.form.submit()">
							<option selected="selected" value="">- - - Select Configuration-
								- -</option>
								<?php foreach ($settings['all'] as $settings):?>
							<option value="<?= $settings->id; ?>"><?= $settings->variable; ?></option>
										
										<?php endforeach;?>
						</select>
					</div>
				</div>


			</form>
		</div>
		<!-- End of Body Panel -->
	</section>
	<!-- page end-->
	
	<?php if (isset($row['info']->id)) { ?>
	<section class="panel">
					<header class="panel-heading"> WEB CONFIGURATION </header>
					<div class="panel-body">
						<form class="form-horizontal" role="form"
						name="setting_update" method="POST"
				action="<?=base_url(); ?>secure/settings/web_configuration/update">

							
							<input type="hidden" name="website_settings"
					value="<?= $row['info']->variable; ?>">	
					<?php
				if ($this->session->flashdata('message')) {
					$msg = $this->session->flashdata('message');
					echo '<font color="red">' . $msg . '</font>';
				}
				?>			
<input type="hidden" name="website_settings"
								value="<?= $row['info']->variable; ?>">
							
							<div class="form-group">
								<label for="input" class="col-lg-2 control-label"><?= ucfirst($row['info']->variable);?></label>
								<div class="col-lg-10">
									<textarea id="web_settings" name="web_detail" class="form-control" rows="3"><?= $row['info']->value;?></textarea>
								</div>
							</div>
<input type="hidden" name="web_id" value="<?= $row['info']->id;?>" />
							<div class="form-group">
								<div class="col-lg-offset-2 col-lg-10">
									<button type="submit" class="btn btn-info pull-right" <?= ucfirst($row['info']->variable); ?>" name="update_settings" 
					<?php if($this->config->item('mode')=='DEMO'){?>onclick="alert ('Sorry! Not allowed in Demo mode '); return false;" <?} else?>onclick="return confirm('Are you sure ?');" >
					Update <?= ucfirst($row['info']->variable);?></button>
								</div>
							</div>


						</form>
					</div>
					<!-- End of Body Panel -->
				</section>
				<!-- page end-->
	<?php }?>
</section>


				





